package com.sh;

public class B {
    private A a;

    public void setA(A a) {
        this.a = a;
    }

    public void say() {
        System.out.println("我是 B，我的 A 是不是 null？" + (a != null));
    }
}
